package com.example.teamtribe.json;

import com.example.teamtribe.database.Team;

public class JsonTeam {

    private int code;
    private Team team;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Team getTeam() {
        team.setRealId(team.getId());
        team.setId(0);
        return team;
    }

    public void setTeam(Team team) {
        this.team = team;
    }
}
